package cn.itsource.basic.base.query;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class BaseQuery {
    //当前页
    @ApiModelProperty(value = "当前页")
    private Integer currentPage = 1;
    //每页条数
    @ApiModelProperty(value = "每页条数")
    private Integer pageSize = 10;

    private String keyword;

    public Integer getPage(){
        return (this.currentPage - 1) * this.pageSize;
    }
}
